<?php echo $this->Form->create('Reporte', array('url'=>array('action'=>'reporteclientes'))); ?>
<fieldset>
                <div class="widget fluid">
                    <div class="whead"><h6>Reporte por clientes</h6><div class="clear"></div></div>
                    
                     <div class="formRow fluid">
                        <div class="grid6">
                            <label>Desde:&nbsp;</label>
                            &nbsp;<?php echo $this->Form->text('fecha_inicio', array('class' => 'datepicker', 'id'=>'fecha3')); ?></div>
                        <div class="grid6">
                            <label>Hasta:&nbsp;</label>
                            &nbsp;<?php echo $this->Form->text('fecha_fin', array('class' => 'datepicker', 'id'=>'fecha4')); ?></div>
                        <div class="clear"></div>
                    </div>
                    <div class="formRow">
                    <div class="grid3">
                        <label>Cliente:</label>
                    </div>
                    <div class="grid9">
                        <select data-placeholder="Seleccione el cliente.." class="select" tabindex="1" name="data[Reporte][cliente_id]">
                        <option value="" >Todos</option> 
                        <?php foreach ($clientes as $c): ?>
                            <option value="<?php echo $c['Cliente']['id'] ?>">
                                <?php echo $c['Cliente']['nombre'] ?>
                            </option>
                        <?php endforeach; ?>
                    </select>
                    </div>
                        <div class="clear"></div>    
                </div>
                    <div class="formRow">
                    <div class="grid3">
                        <label>Sucursal:</label>
                    </div>
                    <div class="grid9">
                        <select data-placeholder="Seleccione sucursal.." class="select" tabindex="1" name="data[Reporte][sucursale_id]">
                        <option value="" >Todos</option> 
                        <?php foreach ($sucursales as $t): ?>
                            <option value="<?php echo $t['Sucursale']['id'] ?>">
                                <?php echo $t['Sucursale']['nombre'] ?>
                            </option>
                        <?php endforeach; ?>
                    </select>
                    </div>
                        <div class="clear"></div>    
                </div>
                   <div class="formRow">
                       <?php 
                       $opt=array('class'=>'buttonS bLightBlue', 'Value'=>"Generar reporte");
                       echo $this->Form->end($opt)?>
                
            </div>
                </div>
                
                
            </fieldset>